package org.jeecg.modules.work.dispatch.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.print.Doc;

/**
 * @Description: 调度工单
 * @Author: 月月鸟
 * @Date:   2021-05-31
 * @Version: V1.0
 */
@Data
@TableName("bike_work_dispatch")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bike_work_dispatch对象", description="调度工单")
public class BikeWorkDispatch implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**任务编号*/
	@Excel(name = "任务编号", width = 15)
    @ApiModelProperty(value = "任务编号")
    private java.lang.String code;
	/**任务描述*/
	@Excel(name = "任务说明", width = 15)
    @ApiModelProperty(value = "任务描述")
    private java.lang.String taskDescribe;
	/**是否必须上传照片 1是 0否"*/
    @ApiModelProperty(value = "是否必须上传照片 1是 0否")
    @Dict(dicCode = "yn")
    private java.lang.String isPicture;
	/**责任人ID*/
    @ApiModelProperty(value = "责任人ID")
    private java.lang.String userId;
    @Excel(name = "责任人", width = 15)
    @ApiModelProperty(value = "责任人")
    @TableField(exist = false)
    private java.lang.String userName;
	/**截至完成时间*/
	@Excel(name = "截至完成时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "截至完成时间")
    private java.util.Date finishTime;
	/**紧急程度 2 一般 1加急	*/
	@Excel(name = "紧急程度", width = 15,dicCode = "urgent_type")
    @ApiModelProperty(value = "紧急程度 2 一般 1加急")
    @Dict(dicCode = "urgent_type")
    private java.lang.String urgentType;
	/**是否派单 1是 0否*/
	@Excel(name = "是否派单", width = 15,dicCode = "yn")
    @ApiModelProperty(value = "是否派单 1是 0否")
    @Dict(dicCode = "yn")
    private java.lang.String isDispatch;
	/**转工单时间*/
	//@Excel(name = "转工单时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "转工单时间")
    private java.util.Date dispatchTime;

	/**打卡时间*/
	@Excel(name = "完成时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "打卡时间")
    private java.util.Date actualTime;
	/**打卡定位*/
	//@Excel(name = "打卡定位", width = 15)
    @ApiModelProperty(value = "打卡定位")
    private java.lang.String actualAddress;
	/**是否解决 1 已解决 2 未解决	*/
	@Excel(name = "是否解决", width = 15,dicCode = "is_solve")
    @ApiModelProperty(value = "是否解决 1 已解决 0 未解决")
    @Dict(dicCode = "is_solve")
    private java.lang.String isSolve;

    /**是否完成 1 是 0 否	*/
    @ApiModelProperty(value = "是否完成 1 是 0 否")
    @TableField(exist = false)
    private java.lang.String isFinish;

	/**工单来源(1新增2检测故障3上报故障)*/
    @ApiModelProperty(value = "工单来源(1新增2检测故障3上报故障4再次派单)")
    @Dict(dicCode = "work_source")
    private java.lang.String workSource;
	/**来源编码*/
	//@Excel(name = "来源编码", width = 15)
    @ApiModelProperty(value = "来源编码")
    private java.lang.String sourceId;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private java.lang.String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;
	/**备注*/
	//@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String memo;
    /**处理描述*/
    @Excel(name = "处理描述", width = 15)
    @ApiModelProperty(value = "处理描述")
    private java.lang.String content;
	//图片

    /**图片url*/
    //@Excel(name = "图片Url", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "图片Url")
    private java.lang.String fileUrl;

}
